package com.ufida.ids.util.upload;

import java.io.IOException;
import java.util.HashMap;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class UploadServlet extends HttpServlet {
    private static final long serialVersionUID = 2271525549230183342L;

     public void doPost(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {
            UpLoad upload=new UpLoad(request);
            HashMap paraValueM = new HashMap();
            String fileName = upload.getUpFile(paraValueM);
    		response.setContentType("text/html;charset=UTF-8");
			response.getWriter().print(true);
          }
 }


